ccbd4018b149c8217a879f255b2ebc588ceabddc,compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/AbstractLazyMemberScope.java,AbstractLazyMemberScope,getFunctions,#Name#,113
Before Change
@NotNull
@Override
public Set<FunctionDescriptor> getFunctions(@NotNull Name name) {
Set<FunctionDescriptor> known = functionDescriptors.get(name);
if (known != null) return known;
// If all descriptors are already computed, we are
if (allDescriptorsComputed) return Collections.emptySet();
Set<FunctionDescriptor> result = Sets.newLinkedHashSet();
Collection<JetNamedFunction> declarations = declarationProvider.getFunctionDeclarations(name);
for (JetNamedFunction functionDeclaration : declarations) {
JetScope resolutionScope = getScopeForMemberDeclarationResolution(functionDeclaration);
result.add(resolveSession.getInjector().getDescriptorResolver().resolveFunctionDescriptor(thisDescriptor, resolutionScope,
functionDeclaration,
resolveSession.getTrace()));
}
getNonDeclaredFunctions(name, result);
if (!result.isEmpty()) {
Set<FunctionDescriptor> oldValue = functionDescriptors.putIfAbsent(name, result);
if (oldValue != null) return oldValue;
registerDescriptors(result);
}
After Change
@NotNull
@Override
public Set<FunctionDescriptor> getFunctions(@NotNull Name name) {
return functionDescriptors.fun(name);
}
@NotNull